
package com.xuxk.project.library.bean;
import java.io.Serializable;

import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.EqualsBuilder;

/**
 * XuxkLibrary Base Java Bean, base class for the model, mapped directly to database table
 * 
 * Avoid changing this file if not necessary, will be overwritten. 
 * @author 橙云科技有限公司
 * 图书馆信息
 */
public class XuxkLibrary  implements Serializable {

    protected Integer id;
	protected String lName;
	protected String lAddress;
	protected java.util.Date createTime;
	protected java.util.Date lBuildTime;
	protected Integer lStatus;
	protected String lInfo;


	/**
	 * Default Empty Constructor for class XuxkLibrary
	 */
	public XuxkLibrary () {
		super();
	}
	
	/**
	 * Default Key Fields Constructor for class XuxkLibrary
	 */
	public XuxkLibrary (
		 Integer in_id
        ) {
		this.setId(in_id);
    }

    

	/**
	 * 	 * @return Integer
	 */
	public Integer getId() {
		return this.id;
	}
	
	/**
	 * Set the id
	 */	
	public void setId(Integer aValue) {
		this.id = aValue;
	}	

	/**
	 * 图书管名称	 * @return String
	 */
	public String getLName() {
		return this.lName;
	}
	
	/**
	 * Set the lName
	 * @spring.validator type="required"
	 */	
	public void setLName(String aValue) {
		this.lName = aValue;
	}	

	/**
	 * 图书馆地址	 * @return String
	 */
	public String getLAddress() {
		return this.lAddress;
	}
	
	/**
	 * Set the lAddress
	 */	
	public void setLAddress(String aValue) {
		this.lAddress = aValue;
	}	

	/**
	 * 创建时间	 * @return java.util.Date
	 */
	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	
	/**
	 * Set the createTime
	 */	
	public void setCreateTime(java.util.Date aValue) {
		this.createTime = aValue;
	}	

	/**
	 * 图书管成立时间	 * @return java.util.Date
	 */
	public java.util.Date getLBuildTime() {
		return this.lBuildTime;
	}
	
	/**
	 * Set the lBuildTime
	 */	
	public void setLBuildTime(java.util.Date aValue) {
		this.lBuildTime = aValue;
	}	

	/**
	 * 状态：1-有效；0-无效	 * @return Integer
	 */
	public Integer getLStatus() {
		return this.lStatus;
	}
	
	/**
	 * Set the lStatus
	 */	
	public void setLStatus(Integer aValue) {
		this.lStatus = aValue;
	}	

	/**
	 * 图书管简介	 * @return String
	 */
	public String getLInfo() {
		return this.lInfo;
	}
	
	/**
	 * Set the lInfo
	 */	
	public void setLInfo(String aValue) {
		this.lInfo = aValue;
	}	

	/**
	 * @see Object#equals(Object)
	 */
	@Override
	public boolean equals(Object object) {
		if (!(object instanceof XuxkLibrary)) {
			return false;
		}
		XuxkLibrary rhs = (XuxkLibrary) object;
		return new EqualsBuilder()
				.append(this.id, rhs.id)
				.append(this.lName, rhs.lName)
				.append(this.lAddress, rhs.lAddress)
				.append(this.createTime, rhs.createTime)
				.append(this.lBuildTime, rhs.lBuildTime)
				.append(this.lStatus, rhs.lStatus)
				.append(this.lInfo, rhs.lInfo)
				.isEquals();
	}

	/**
	 * @see Object#hashCode()
	 */
	@Override
	public int hashCode() {
		return new HashCodeBuilder(-82280557, -700257973)
				.append(this.id) 
				.append(this.lName) 
				.append(this.lAddress) 
				.append(this.createTime) 
				.append(this.lBuildTime) 
				.append(this.lStatus) 
				.append(this.lInfo) 
				.toHashCode();
	}

	/**
	 * @see Object#toString()
	 */
	@Override
	public String toString() {
		return new ToStringBuilder(this)
				.append("id", this.id) 
				.append("lName", this.lName) 
				.append("lAddress", this.lAddress) 
				.append("createTime", this.createTime) 
				.append("lBuildTime", this.lBuildTime) 
				.append("lStatus", this.lStatus) 
				.append("lInfo", this.lInfo) 
				.toString();
	}

	/**
	 * Return the name of the first key column
	 */

}